ostree-finalize-staged.service: RequiresMountsFor=/etc
authorColin Walters <walters@verbum.org>
Wed, 27 Aug 2025 14:38:11 +0000 (10:38 -0400)
committerColin Walters <walters@verbum.org>
Wed, 27 Aug 2025 15:53:36 +0000 (11:53 -0400)
I've seen in some cases systemd try to unmount /etc quite early
and then fail because it's in use.

It's confusing because I don't see this in all scenarios.
But regardless, in the situations where it does occur,
this fixes it.

Signed-off-by: Colin Walters <walters@verbum.org>
src/boot/ostree-finalize-staged.service

index 63621ce192e681bc6ede99158c9c2dc60616201f..897b1da1aee56d1168359efc1daa3c04baa8335d 100644 (file)
@@ -21,7 +21,7 @@ Documentation=man:ostree(1)
 ConditionPathExists=/run/ostree-booted
 DefaultDependencies=no
 
-RequiresMountsFor=/sysroot /boot
+RequiresMountsFor=/sysroot /boot /etc
 After=local-fs.target
 Before=basic.target final.target
 # We want to make sure the transaction logs are persisted to disk: